package view.rule.organizer;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.SwingUtilities;

public class RuleOrganizerPanel extends JPanel {
	
	private RuleTree tree;
	private JButton addGrpBtn;
	private JButton addRuleBtn;
	
	public RuleOrganizerPanel(){
		setLayout(null);
		addComponent();
	}
	
	public void addComponent(){
		tree = new RuleTree();
		addGrpBtn = new JButton("Add Group");
		addRuleBtn = new JButton("Add Rule");
		
		tree.setBounds(0, 0, 300, 300);
		addRuleBtn.setBounds(20, 310, 120, 20);
		addGrpBtn.setBounds(150, 310, 120, 20);
		
		this.add(tree);
		this.add(addGrpBtn);
		this.add(addRuleBtn);
	}
	
	public static void main(String[] args)
    {
		JFrame frame = new JFrame();
		frame.setSize(700, 480);
        frame.add(new RuleOrganizerPanel());
        
        frame.setVisible(true);
    }       
}
